<%-- 
    Document   : insert_updateProCate
    Created on : Sep 30, 2013, 8:55:43 AM
    Author     : NTB
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:include page="header.jsp"/>
<div id="wrapper-page">
  <div class="function-wrap">
    <c:set var="dt" value="${requestScope.DETAILS}"/>
    <c:if test="${not empty dt}">  
      <h2>Cập nhật loại sản phẩm</h2>
      <a href="C_Category?btAction=Pro_cate_Search&txtSearch=" style="display:block;" >
        <div class="btnbackMenu"></div>
      </a>
      <div class="listProduct">
        <h3>Thông tin chi tiết</h3>
        <div style="margin: 0 auto;margin-bottom: 20px;">
          <form action="C_Category" method="POST">
            <table style="width: 550px; border: 1px solid #dedede;margin: 0 auto;" class="tables">
              <tbody>                  
                <tr>
                  <td style="width: 160px;">Tên loại sản phẩm:</td>
                  <td>
                    <div class="input-control text">
                      <input class="inputIn" name="txtLoaisp" type="text" value="${dt.tenloaisp}"/>
                      <input type="hidden" class="inputLog" name="maloaisp" value="${dt.maloaisp}"/>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td>
                  </td>
                  <td>
                    <input type="hidden" name="btAction" value="Pro_cate_Update"/> 
                    <input type="submit" name="submit" value="Sửa"/> 
                  </td>
                </tr>
              </tbody>
            </table>
          </form> 
        </div>
      </div>  
    </c:if>
    <c:set var="dt" value="${requestScope.INSERT}"/>
    <c:if test="${not empty dt}">  
      <h2>Thêm loại sản phẩm</h2>
      <a href="Controller?btAction=Pro_cate_Search&txtSearch=" style="display:block;" ><div class="btnbackMenu"></div></a>

      <div class="listProduct">
        <h3>Điền thông tin loại sản phẩm</h3>
        <div style="margin: 0 auto;margin-bottom: 20px;">
          <form action="C_Category" method="POST">
            <table style="width: 550px; border: 1px solid #dedede;margin: 0 auto;" class="tables">
              <tbody>                  
                <tr>
                  <td style="width: 160px;">Tên loại sản phẩm:</td>
                  <td>
                    <div class="input-control text">
                        <input class="inputIn" name="txtLoaisp" type="text" value=""/>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td>
                  </td>
                  <td>
                    <input type="hidden" name="btAction" value="Pro_cate_Insert"/> 
                    <input type="submit" name="submit" value="Thêm"/> 
                  </td>
                </tr>
              </tbody>
            </table>
          </form> 
        </div>
      </div>  
    </c:if>
  </div>      
</div>              
</body>
</html>
